package com.zh.manage.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.zh.common.entity.BaseEntity;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;


/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @Description: 参数实体类, 字段策略配置请参考mybatis-plus 官网
 * @Author: Li.HuiNeng
 * @Create in: 2019/8/12
 * @Version: 1.0.1
 */

@TableName("system_param")
@ApiModel(description = "参数实体类")
@Data
@EqualsAndHashCode(callSuper = true)
public class ParamEntity extends Model<ParamEntity>{
    private static final long serialVersionUID = -58925420891481841L;

    @ApiModelProperty(value = "主键", example = "1", required = true)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "逻辑删除字段", name = "deleted")
    @TableLogic
    private Integer deleted;
    @ApiModelProperty(value = "参数类别(1-前置参数 2-后台参数)", example = "1")
    @TableField(value = "param_type", condition = SqlCondition.LIKE)
    private Integer paramType;

    @ApiModelProperty(value = "参数代码", example = "quick")
    @TableField(value = "param_code", condition = SqlCondition.LIKE)
    private String paramCode;

    @ApiModelProperty(value = "参数值", example = "1111")
    @TableField(value = "param_value", condition = SqlCondition.LIKE)
    private String paramValue;

    @ApiModelProperty(value = "参数说明", example = "快捷订单序列号")
    @TableField(value = "param_memo", condition = SqlCondition.LIKE)
    private String paramMemo;

}
